#!/bin/bash
USER="root"
PASSWORD="root"
DATABASE="testdb"

mysql -u$USER -p$PASSWORD -D$DATABASE</usr/sql/position_type_info_v2_DataStructure.sql

mv /usr/sql/position_type_info_v2_DataStructure.sql /usr/sql/position_type_info_v2_DataStructure.sql.bak

for i in `ls *.sql`;do
        mysql -u$USER -p$PASSWORD -D$DATABASE</usr/sql/$i
done